<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html lang="utf-8">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="description" content="">
    <meta name="keys" content="">
    <meta name="author" content="">
    <link rel="stylesheet" href="${pageContext.request.contextPath}/resources/bootstrap/css/bootstrap.css">
    <link rel="stylesheet" href="${pageContext.request.contextPath}/resources/css/font-awesome.min.css">
    <link rel="stylesheet" href="${pageContext.request.contextPath}/resources/css/login.css">
    <link rel="stylesheet" href="${pageContext.request.contextPath}/resources/css/carousel.css">
    <script src="${pageContext.request.contextPath}/resources/jquery/jquery-2.1.1.min.js"></script>
    <style>
        h2 {
            color: #2a6496;
        }

        .glyphicon {
            color: #2a6496;
        }

        #logoimg {
            width: 150px;
            position: absolute;
            left: 15px;
            padding: 5px 5px;
        }

        #logodiv {
            position: absolute;
            left: 165px;
        }

        #mydiv2 {
            position: absolute;
            left: 110%;
            top: 10%;
        }
        #time1 {
            display: inherit;
        }
    </style>
</head>
<body>
<div class="navbar-wrapper ">
    <div class="container ">
        <nav class="navbar navbar-inverse navbar-fixed-top" role="navigation">
            <div class="container">
                <div class="navbar-header">
                    <img id="logoimg" src="${pageContext.request.contextPath}/resources/img/logo2.png"/>
                    <div id="logodiv"><a class="navbar-brand" href="${pageContext.request.contextPath}/index.jsp"
                                         style="font-size:32px;">在线报修平台</a></div>
                </div>
                <div id="navbar" class="navbar-collapse collapse" style="float:right;">
                    <%--动态显示时间--%>
                    <span id="time1"
                          style="color: #f7f7f9;float: left;font-family: 微软雅黑;font-weight: bold;padding-top: 5%"></span>
                    <script type="text/javascript">
                        //非动态显示
                        //document.getElementById('time1').innerHTML=new Date().toLocaleString()+' 星期'+'日一二三四五六'.charAt(new Date().getDay());
                        //动态显示时间
                        setInterval("document.getElementById('time1').innerHTML=new Date().toLocaleString()+' 星期'+'日一二三四五六'.charAt(new Date().getDay());", 1000);
                    </script>
                    <ul class="nav navbar-nav ">
                        <li><a href="${pageContext.request.contextPath}/index.jsp">返回首页</a></li>
                        </li>
                    </ul>
                </div>
            </div>
        </nav>
    </div>
    <div class="row" id="mydiv">
        <div class="container col-md-3 col-md-offset-4">

            <form action="${pageContext.request.contextPath}/tbAdmin/login-admin" method="post" class="form-signin"
                  role="form">
                <h2 class="form-signin-heading"><i class="glyphicon glyphicon-user"></i> 管理员登录</h2>
                <div class="form-group has-success has-feedback">
                    <input value="root" type="text" class="form-control" id="inputSuccess1" name="adminAccount"
                           placeholder="请输入登录账号"
                           autofocus>
                    <span class="glyphicon glyphicon-user form-control-feedback"></span>
                </div>
                <div class="form-group has-success has-feedback">
                    <input value="root" type="password" class="form-control" id="inputSuccess2" name="adminPassword"
                           placeholder="请输入登录密码"
                           style="margin-top:10px;">
                    <span class="glyphicon glyphicon-lock form-control-feedback"></span>
                </div>
                <input type="submit" class="form-control btn btn-primary" value="登陆"/>
            </form>
            <div class="col-md-6 " id="mydiv2">
                <hr>
                <h3 class="text-info ">须知 <span class="glyphicon glyphicon glyphicon-hand-down "></span></h3>
                <hr>
                <p class="text-info">一、为了保障您能登陆成功，请您访问正确的页面。</p>
                <hr>
                <p class="text-info">二、此页面只有管理员才可以登陆。</p>
            </div>
        </div>
    </div>
</div>
<script src="${pageContext.request.contextPath}/resources/jquery/jquery-2.1.1.min.js"></script>
<script src="${pageContext.request.contextPath}/resources/bootstrap/js/bootstrap.min.js"></script>
<script>
</script>
</body>
</html>